Accessible Password Reveal & State Announcer
Listing: GCD-WEB-048 · Version: 1.0.0 · Price: Free
Start safely
- Read
README.md, especially prerequisites, limitations, verification, and rollback. - Run
npm test; expect 14 passing tests and zero failures. - Open
example/password-reveal.htmlthrough a local web server. - Copy
src/accessible-password-reveal.jsand attach it to your existing password input, button, and optional status element. - Test keyboard, screen reader, password manager, submission, mobile, and teardown behavior in the exact production form.
Important boundary
The helper never reads the password value and adds no styles. It does not provide authentication, password validation, HTTPS, protection from scripts already on the page, or accessibility certification. Showing a password exposes it to anyone viewing the screen.
Remove
Call the returned controller's destroy(), remove the module import and added controls, restore the original markup, and retest the original password flow.